export class PropertySet{
    //属性集合
    properties:Map<number,number> = new Map()

    public getPro(pKey:number){
        let pro =  this.properties.get(pKey)
        if(pro){
            //TODO 百分比，万分比处理
            return pro;
        }
        return 0;

    }
    public addPro(pKey:number,pValue:number){
        let oldValue = this.getPro(pKey)
        this.properties.set(pKey,oldValue+pValue)
    }
}